package com.partvoyage.client.mvp2.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class CreerPointEvent extends
		GwtEvent<CreerPointEvent.CreerPointEventHandler> {
	public static Type<CreerPointEventHandler> TYPE = new Type<CreerPointEventHandler>();

	public interface CreerPointEventHandler extends EventHandler {
		void onCreerPoint(CreerPointEvent event);
	}

	private Double latitude;
	private Double longitude;

	public CreerPointEvent(Double latitude, Double longitude) {
		this.latitude = latitude;
		this.longitude = longitude;
	}

	public Double getLatitude() {
		return latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<CreerPointEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(CreerPointEventHandler handler) {
		handler.onCreerPoint(this);

	}

}
